#!/usr/bin/env bash
#export JAVA_HOME=/data/adi/jdk1.8.0_45
#export PATH=$JAVA_HOME/bin:$PATH
rundir=`dirname "$0"`
cd $rundir
nohup java -Xmx128M -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory \
-Dvertx.cwd=./ -DAPP_NAME=forward-connect \
-Dvertx.disableFileCaching=true -Dvertx.disableFileCPResolving=true \
-cp .:forward-connect-0.0.1.jar:forward-connect-fat.jar \
io.vertx.example.verticle.ForwardConnectMonitor &